package com.ruoyi.system.service.construction.impl;

import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.construction.ConstructionInfo;
import com.ruoyi.system.domain.construction.ConstructionPicInfo;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.SupplierInfo;
import com.ruoyi.system.mapper.SysUserMapper;
import com.ruoyi.system.mapper.construction.ConstructionInfoMapper;
import com.ruoyi.system.mapper.construction.ConstructionPicInfoMapper;
import com.ruoyi.system.mapper.zhuangxiumapper.shopMapper.SupplierInfoMapper;
import com.ruoyi.system.service.construction.ConstructionPicInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 施工队图片信息Service业务层处理
 * 
 * @author 张
 * @date 2020-11-04
 */
@Service
public class ConstructionPicInfoServiceImpl implements ConstructionPicInfoService
{
    @Autowired
    private ConstructionPicInfoMapper constructionPicInfoMapper;

    @Autowired
    private ConstructionInfoMapper constructionInfoMapper;

    @Autowired
    private SupplierInfoMapper supplierInfoMapper;

    @Autowired
    private SysUserMapper userMapper;

    /**
     * 查询施工队图片信息
     * 
     * @param constructionPicId 施工队图片信息ID
     * @return 施工队图片信息
     */
    @Override
    public ConstructionPicInfo selectConstructionPicInfoById(Integer constructionPicId)
    {
        return constructionPicInfoMapper.selectConstructionPicInfoById(constructionPicId);
    }

    /**
     * 查询施工队图片信息列表
     * 
     * @param constructionPicInfo 施工队图片信息
     * @return 施工队图片信息
     */
    @Override
    public List<ConstructionPicInfo> selectConstructionPicInfoList(ConstructionPicInfo constructionPicInfo)
    {
        return constructionPicInfoMapper.selectConstructionPicInfoList(constructionPicInfo);
    }

    /**
     * 新增施工队图片信息
     * 
     * @param constructionPicInfo 施工队图片信息
     * @return 结果
     */
    @Override
    public int insertConstructionPicInfo(ConstructionPicInfo constructionPicInfo)
    {
        return constructionPicInfoMapper.insertConstructionPicInfo(constructionPicInfo);
    }

    /**
     * 修改施工队图片信息
     * 
     * @param constructionPicInfo 施工队图片信息
     * @return 结果
     */
    @Override
    public int updateConstructionPicInfo(ConstructionPicInfo constructionPicInfo)
    {
        return constructionPicInfoMapper.updateConstructionPicInfo(constructionPicInfo);
    }

    /**
     * 批量删除施工队图片信息
     * 
     * @param constructionPicIds 需要删除的施工队图片信息ID
     * @return 结果
     */
    @Override
    public int deleteConstructionPicInfoByIds(Integer[] constructionPicIds)
    {
        return constructionPicInfoMapper.deleteConstructionPicInfoByIds(constructionPicIds);
    }

    /**
     * 删除施工队图片信息信息
     * 
     * @param constructionPicId 施工队图片信息ID
     * @return 结果
     */
    @Override
    public int deleteConstructionPicInfoById(Integer constructionPicId)
    {
        return constructionPicInfoMapper.deleteConstructionPicInfoById(constructionPicId);
    }
}
